package com.pray.praymall.search.service;

import com.pray.common.to.es.SkuEsModel;

import java.io.IOException;
import java.util.List;

/**
 * ProductSaveService
 *
 * @author 魂悸魄
 * @date 2020/9/12 17:58
 */
public interface ProductSaveService {
    /**
     * 保存商品上架信息
     * @param esModels 商品上架需要保存的数据集合
     * @throws IOException When connection is failed throw this exception
     */
    boolean productStatusUp(List<SkuEsModel> esModels) throws IOException;
}
